import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        boolean started = false;
        Scanner scan = new Scanner(System.in);
        
        try {
            while (!started) {
                
                System.out.print("Would you like to use (T)ext-based or (G)raphics-based mode: ");
                String s = scan.nextLine();
                if (s.length() > 0) {
                    char c = s.charAt(0);
                    
                    if (c == 't' || c == 'T') {
                        UI ui = new UI();
                        ui.turn();
                        started = true;
                    }
                    else if (c == 'g' || c == 'G') {
                        GUI gui = new GUI();
                        break;
                    }
                    else {
                        System.out.println("Try again nigger");
                    }
                }
                else {
                    System.out.println("Stop pressing enter you fool");
                }
            }
        }
        finally {
            System.out.println("Have nice day.");
        }
    }
}
